﻿<%@ Page Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AddNews.aspx.cs" Inherits="VCN.admin.AddNews" %>


<%@ Register assembly="CKEditor.NET" namespace="CKEditor.NET" tagprefix="CKEditor" %>


<%@ Register assembly="CuteEditor" namespace="CuteEditor" tagprefix="CE" %>


<asp:Content ID="Content18" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    &nbsp;<table width="100%" cellspacing="3" cellpadding="3" border="0">
        <tbody>
            <tr>
                <th scope="col" class="title" colspan="2" style="height: 30px">
                    <h2 style="text-align: center; color: #0099FF; font-size: x-large;">
                        THÊM BÀI VIẾT MỚI</h2>
                                    </th>
            </tr>
            <tr>
                <td colspan="2" class="row" align="center" style="height: 5px">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        HeaderText="Lỗi nhập bài viết :" style="text-align: left" />
                </td>
            </tr>
            <tr>
                <td class="row" 
                    style="height: 32px; width: 20%; text-align: left; color: #0099FF; font-weight: bold;">
                    Tiêu đề bài viết&nbsp; </td>
                <td align="left" class="row" style="height: 32px; ">
                    <asp:TextBox ID="txt_Title" runat="server" Width="501px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_Title" runat="server" 
                        ControlToValidate="txt_Title" ErrorMessage="Chưa nhập tiêu đề bài viết"> (*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="height: 32px; width: 20%; text-align: left; color: #0099FF;">
                    <b>Tóm tắt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    </b></td>
                <td align="left" style="height: 32px; ">
                    <asp:TextBox ID="txt_ShortContent" runat="server" Height="110px" 
                        Width="500px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="row" 
                    style="height: 32px; width: 20%; color: #0099FF; text-align: left; font-weight: bold;">
                    Nội dung chính&nbsp; </td>
                <td align="left" style="height: 32px; ">
			<CE:Editor ID="txt_Content" runat="server" Height="400px" Width="98%" 
                        AutoConfigure="Default" ThemeType="Office2003" >
                <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderWidth="1px" BorderStyle="Solid"
                    CssClass="CuteEditorFrame" Height="100%" Width="100%"></FrameStyle>
            </CE:Editor>
                    <asp:RequiredFieldValidator ID="rfv_Content" runat="server" 
                        ControlToValidate="txt_Content" ErrorMessage="Chưa nhập nội dung chính"> (*)</asp:RequiredFieldValidator>
                                                </td>
            </tr>
            <tr>
                <td align="left" class="row" 
                    style="height: 32px; width: 20%; color: #0099FF; font-weight: bold;">
                    Ảnh&nbsp;minh họa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                <td align="left" class="row" style="height: 32px; ">
                    <br />
                    <asp:FileUpload ID="FileUpload" runat="server" 
                        ToolTip="Click here to upload an image for product." />
                    <asp:RequiredFieldValidator ID="rfv_Content0" runat="server" 
                        ControlToValidate="FileUpload" ErrorMessage="Chưa có ảnh đại diện"> (*)</asp:RequiredFieldValidator>
                    <br />
                    <br />
                                                </td>
            </tr>
            <tr>
                <td align="left" style="width: 20%; color: #0099FF; height: 32px;">
                    <b>Tác giả bài viết&nbsp;&nbsp; </b></td>
                <td align="left" class="row" style="height: 32px">
                    <asp:DropDownList ID="ddl_AuthorId" runat="server" Width="257px">
                    </asp:DropDownList>
                    <asp:TextBox ID="txt_Type" runat="server" Width="257px" Visible="False">1</asp:TextBox>
                                                </td>
            </tr>
            <tr>
                <td align="left" style="width: 20%; color: #0099FF; height: 32px;">
                    <b>Nguồn tham&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; khảo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b></td>
                <td align="left" class="row" style="height: 32px">
                    <asp:TextBox ID="txt_Reference" runat="server" Width="257px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td height="43" align="right" style="width: 20%; color: #0099FF;">
                    <b>&nbsp;
                </b>
                </td>
                <td height="43" align="left">

                    &nbsp;<%--   OnClick="btnAdd_Click"--%>
                    &nbsp;&nbsp;<asp:Button ID="btnAdd" runat="server"
                        Text="Thêm mới" onclick="add_click" />
                    <asp:Button ID="btnReset" runat="server"  Text="Xóa trắng" 
                        onclick="reset_click" CausesValidation="False" />
                    <asp:Button ID="btnCancel" runat="server" 
                        Text="Thoát" onclick="cancel_click" CausesValidation="False" />
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>

